{% extends 'base.html' %}
{% block title %}
登录
{% endblock %}
{% block noon %}
<script src="/static/js/login.js"></script>
    {% if msg %}
	<script>
		$(function () {
			alert("{{ msg }}")
		})
	</script>
{% endif %}
<div class="login">
	 <div class="container">
			<ol class="breadcrumb">
		  <li><a href="/index">主页面</a></li>
		  <li class="active">登录</li>
		 </ol>
		 <h2>登录</h2>
		 <div class="col-md-6 log">			 
				 <p>欢迎,请登录后继续</p>
				 <form action="/login/" method="post">
                     {% csrf_token %}
					 <h5>用户名:</h5>
					 <input type="text" value="" name="loginaccount">
					 <h5>密码:</h5>
					 <input type="password" value="" name="userpass">
					 <input type="submit" name="submit" value="登录">
					  <a href="#">忘记密码 ?</a>
				 </form>				 
		 </div>
		  <div class="col-md-6 login-right">
			  	<h3>注册一个新用户</h3>
				<p>如果你还未注册，请注册,本站将提供你最优质的房源</p>
				<a class="acount-btn" href="/register">注册用户</a>
		 </div>
		 <div class="clearfix"></div>		 
		 
	 </div>
</div>
{% endblock %}
		